package cn.mugutu.finance.utils;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;

/**
 * Jsoup 工具类  https://www.cnblogs.com/airsen/p/6135238.html
 *
 * @author gan
 * @date 2018/12/12 2:35 PM
 */
public class JsoupUtil {


    public static String httpGet(String url) throws IOException {
        Connection con = Jsoup.connect(url);
        Document doc = con.get();
        return doc.toString();
    }

    public static void main(String[] args) throws Exception {
        //https://datachart.500.com/ssq/history/newinc/history.php?start=18116&end=18145
        System.out.println("++++" + httpGet("http://www.zimeika.com/article/lists/toutiao.html?cate_id=&time_type=&read_order=&type=&author=1&author_id=835002&author_name=%E5%85%A8%E7%90%83%E8%89%BA%E6%9C%AF%E7%B2%BE%E9%80%89&title=&p=1"));
    }


}
